import time
import threading
def singing():
    for i in range(5):
        print("唱歌...",i)
        time.sleep(0.5)
def dancing():
    for i in range(5):
        print("跳舞...",i)
        time.sleep(0.5)        
if __name__ == '__main__': 
    
    t1 = threading.Thread(target=singing)   
    t1.start()
    t2 = threading.Thread(target=dancing)   
    t2.start()
